/*
 * @Author: 徐伟杰
 * @Date: 2022-09-28 11:06:37
 * @LastEditors: 黄宇/Hyuishine
 * @LastEditTime: Thu May 25 2023 15:00:22
 * @Description: 
 * @Email: 1529315455@qq.com
 * @Company: 3xData
 * @youWant: add you want
 */
import globalPostRequest from '@/request/globalPostRequest.js'

// 查询列表接口
export function getList (data, callback) {
    return globalPostRequest({
        url: "/rport/getList",
        method: "get",
        data,
        callback
    })
}

// 获取报告故障信息接口
export function getFaultInfo (data, callback) {
    return globalPostRequest({
        url: "/rport/getFaultInfo",
        method: "post",
        data,
        callback
    })
}


// 新增报告的整改方案信息和整改结论信息
export function insertPlanAndConclusion (data, callback) {
    return globalPostRequest({
        url: "/rport/insertPlanAndConclusion",
        method: "post",
        data,
        callback,
        header: {
            'content-type': 'application/json;charset=UTF-8'
        }
    })
}


// 审核服务机构接口
export function getAudit (data, callback) {
    return globalPostRequest({
        url: "/agencyInfo/audit",
        method: "post",
        data,
        callback
    })
}

// 自动带出整改方案的负责人及联系方式
export function responsibleContact (data, callback) {
    return globalPostRequest({
        url: '/unitInfo/loginUserUnitInfo',
        method: "get",
        data,
        callback
    })
}